package cn.jsonlu.spring.controler;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;

/**
 * Author:JsonLu
 * DateTime:16/7/30 18:28
 * Email:jsonlu@qq.com
 * Desc:One Test Page!
 */
@Controller
public class IndexControler {

    @RequestMapping(value = {"/", "index"})
    @ResponseBody
    public Object index() {
        HashMap hashMap = new HashMap<String, Object>();
        hashMap.put("1", "This is a test Page~!");
        hashMap.put("data", "Made By JsonLu");
        hashMap.put("time", System.currentTimeMillis());
        return hashMap;
    }
}
